package base.java9_17;

/**
 * 局部变量的类型推断 var关键字
 *
 * @author 王霄
 * @date 2021/9/28 21:56
 */
public class VarDemo {
    public static void main(String[] args) {
        var name = "王霄";
        var age = 25;
        System.out.println("age = " + age);
        System.out.println("name = " + name);
    }
}
